public class RegularPolygon extends Polygon
{
    public RegularPolygon(Point[] points)
    {
        super(points);
        this.shape="正多边形";
    }

    public RegularPolygon()
    {
        super();
        this.shape="正多边形";
    }

    public RegularPolygon(Polygon p)
    {
        super(p);
        this.shape="正多边形";
    }

//    public String toString()
//    {
//        return "RegularPolygon{"+
//                "shape='"+shape+'\''+
//                ", point1="+point1+
//                ", super="+super.toString()+
//                '}';
//    }

    public String toString()
    {
        return "new RegularPolygon("+toStringPoints()+")";
    }
}
